package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh精品适用区域Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ThinkPad on 2016/9/20.
 */
@Transactional
public interface Lsh精品适用区域Repository extends JpaRepository<Lsh精品适用区域Model, Integer>, JpaSpecificationExecutor<Lsh精品适用区域Model> {

    @Query("select a from Lsh精品适用区域Model a where a.精品编号=?1")
    List<Lsh精品适用区域Model> findAreaRecordByQualityId(int qualityId);
}
